-- GENERATED SPELL FOR [Dark Conclave Harbinger] --


function spell0_21384(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21384', 651, 1)
end

function spell1_21384(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(16588,pUnit)
pUnit:RegisterEvent('Sorts_21384', 3500, 1)
end

function Sorts_21384(pUnit, Event)
local choix_sorts_21384 = math.random(0, 1)
if choix_sorts_21384 == 0 then
pUnit:RegisterEvent('spell0_21384', 1, 1)
end
if choix_sorts_21384 == 1 then
pUnit:RegisterEvent('spell1_21384', 1, 1)
end
end

function mob21384_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21384', math.random(1500, 3000), 1)
end

function mob21384_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21384_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21384_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21384, 1, 'mob21384_Action')
RegisterUnitEvent(21384, 2, 'mob21384_Leave')
RegisterUnitEvent(21384, 3, 'mob21384_Kill')
RegisterUnitEvent(21384, 4, 'mob21384_Die')
